package com.lxmes.sales.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lxmes.sales.mapper.NcContractExamineMapper;
import com.lxmes.sales.domain.NcContractExamine;
import com.lxmes.sales.service.INcContractExamineService;

/**
 * 合同审批列Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-23
 */
@Service
public class NcContractExamineServiceImpl implements INcContractExamineService 
{
    @Autowired
    private NcContractExamineMapper ncContractExamineMapper;

    /**
     * 查询合同审批列
     * 
     * @param id 合同审批列主键
     * @return 合同审批列
     */
    @Override
    public NcContractExamine selectNcContractExamineById(Long id)
    {
        return ncContractExamineMapper.selectNcContractExamineById(id);
    }

    /**
     * 查询合同审批列列表
     * 
     * @param ncContractExamine 合同审批列
     * @return 合同审批列
     */
    @Override
    public List<NcContractExamine> selectNcContractExamineList(NcContractExamine ncContractExamine)
    {
        return ncContractExamineMapper.selectNcContractExamineList(ncContractExamine);
    }

    /**
     * 新增合同审批列
     * 
     * @param ncContractExamine 合同审批列
     * @return 结果
     */
    @Override
    public int insertNcContractExamine(NcContractExamine ncContractExamine)
    {
        return ncContractExamineMapper.insertNcContractExamine(ncContractExamine);
    }

    /**
     * 修改合同审批列
     * 
     * @param ncContractExamine 合同审批列
     * @return 结果
     */
    @Override
    public int updateNcContractExamine(NcContractExamine ncContractExamine)
    {
        return ncContractExamineMapper.updateNcContractExamine(ncContractExamine);
    }

    /**
     * 批量删除合同审批列
     * 
     * @param ids 需要删除的合同审批列主键
     * @return 结果
     */
    @Override
    public int deleteNcContractExamineByIds(Long[] ids)
    {
        return ncContractExamineMapper.deleteNcContractExamineByIds(ids);
    }

    /**
     * 删除合同审批列信息
     * 
     * @param id 合同审批列主键
     * @return 结果
     */
    @Override
    public int deleteNcContractExamineById(Long id)
    {
        return ncContractExamineMapper.deleteNcContractExamineById(id);
    }
}
